import {ref} from 'vue';
import { defineStore } from 'pinia';
import { getLayoutNav } from '@/apis/layout';
export const useCategoryStore = defineStore('category', () => {
  const categoryList = ref([]);

  const getCategory = async () => {
    const res = await getLayoutNav();
    categoryList.value = res.data.result;
  };
  return {
    categoryList,
    getCategory,
  };
});